{% extends "base.html" %}

{% block title %} Hai Hw{% endblock %}
{% block header %}

{% endblock %}
{% block content%}

	<div id="user-info">
		<p class="headline">You're visitor number: <span class="visitor-counter">{{analysis.counter}}</span></p>
		Your IP: {{client_ip}}
		<p class="headline">List of visitors: </p>
		<table id="visitors-list">
			<thead>
				<tr>
				 <th>Ip address</th>
				 <th>Date and Time</th>
				 <th>Country</th>
				 <th>City</th>
                 <th>Gmap</th>
				 </tr>
			</thead>
			</tbody>
				{% for v in v_list reversed%}
				 <tr>
				 <td>{{v.ip}}</td>
				 <td>{{v.date}}</td>
                 <td>{{v.country}}</td>
                 <td>{{v.city}}</td>
                 <td><a href="/map?lat={{v.latitude}}&lng={{v.longitude}}" target="_blank">click</a></td>
				 </tr>
				 {% endfor %}
			</tbody>
		</table>
	</div>
{% endblock %}

{% block sidebar %}
{% endblock %}
